package com.budwk.app.sqfw.services;

import com.budwk.app.sqfw.models.SqfwPushMsgLog;
import com.budwk.app.sqfw.models.Sqfw_servicerecord;
import com.budwk.app.sqfw.vo.pushmsg.InOutPushVo;
import com.budwk.app.sqfw.vo.pushmsg.PushMsgConfigVo;
import com.budwk.app.sys.models.Sys_unit;
import com.budwk.app.sys.models.Sys_user;
import com.budwk.starter.common.page.Pagination;
import com.budwk.starter.common.result.Result;
import com.budwk.starter.database.service.BaseService;
import com.huawei.push.android.BadgeNotification;

import java.util.List;
import java.util.Map;

public interface SqfwPushMsgLogService extends BaseService<SqfwPushMsgLog>{

    Result<?> failMsgRetry(String msgId);

    /**
     * 发送信息
     * @param sysUser
     * @param serviceRecord
     */
    void pushMessage(PushMsgConfigVo c, Sys_user sysUser, Sqfw_servicerecord serviceRecord);

    void pushAppMessage(SqfwPushMsgLog msgLog);

    void replyMessage(SqfwPushMsgLog msgLog);

    Pagination listMsgByPage(SqfwPushMsgLog msgLog);

    void deleteMessage(String msgId, String pushBatchNo);

    void pushPowerMessage(SqfwPushMsgLog msgLog);

    InOutPushVo statisticsInOutboxNumber();

    List<Sys_user> queryUnitAllUser(String unitId);
}
